import React, { forwardRef } from 'react';

// LabelProps类型定义
interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {};

// Label组件
const Label = forwardRef<HTMLLabelElement, LabelProps>(({ className, ...props }, ref) => (
  <label
    ref={ref}
    className={`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${className}`}
    {...props}
  />
));

Label.displayName = 'Label';

export { Label };